﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Demo.Models
{
    /// <summary>
    /// Class Material.
    /// </summary>
    [Description("素材")]
    public class Material : BaseEntity<long>
    {
        /// <summary>
        /// 素材的名称
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// 	媒体文件类型，分别有图片（image）、语音（voice）、视频（video）和缩略图（thumb）
        /// </summary>
        /// <value>The type.</value>
        public string Type { get; set; }

        /// <summary>
        /// 本地存储的路径
        /// </summary>
        /// <value>The local path.</value>
        public string LocalPath { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        /// <value>The size.</value>
        public long Size { get; set; }

        /// <summary>
        /// 仅图片素材的时候，会有该字段
        /// </summary>
        /// <value>The URL.</value>
        public string Url { get; set; }

        /// <summary>
        /// 素材的meidiaId
        /// </summary>
        /// <value>The media identifier.</value>
        public string MediaId { get; set; }


        /// <summary>
        /// 视频素材的标题
        /// </summary>
        /// <value>The title.</value>
        public string Title { get; set; }


        /// <summary>
        /// 视频素材的描述
        /// </summary>
        /// <value>The introduction.</value>
        public string Introduction { get; set; }


        public long WeChat_Id { get; set; }

        public virtual WeChat WeChat { get; set; }
    
    }
}
